﻿<html>
	<body background="pic/background_06.gif">
	<head>
		<font face="新細明體,time new roman,Arial">
		<meta charset="UTF-8">
	</head>
	<body>
		<center>
			<font size="5" color="#0000FF"><b>--- 下載程式/文件,查詢結果 ---</b></font><br>
			<hr>
			<?php
				// Loading all php class variable and fucntions ...
				require_once('class_package/common.php');
				
				// 各下载程式, 输入资料判断 ...
				$get_prgm_wsid = trim($_GET['wsid']);
				$get_prgm_user = trim($_GET['createUser']);
				
				
				$login_user				= trim($_COOKIE['login_user']);

				if(empty($login_user)){
					echo "<script> alert('用户未登录，请登陆后操作！登录用户：$login_user');history.go(-1);</script>";
					exit();
					
				}
				if($get_prgm_wsid == ""  ){
					echo "<script> alert('删除失败！站别不能为空！');history.go(-1);</script>";
				}
				
				if($login_user!="root"&$login_user!="binz_zhang"&$login_user!="guangshui_xu"){
					echo "<script> alert('该用户没有删除站别权限：$login_user');</script>";
				}else{
				
					$result =setting_delete($get_prgm_user,$get_prgm_wsid);
						if($result){
							echo "<script> alert('删除成功！');history.go(-1);</script>";
						}else{
							echo "<script> alert('删除失败！数据库异常');history.go(-1);</script>";
						}
				}
							
				exit();
			?>
		</center>
	</body>
</html>

<script>
	
</script>










